package com.lkdont.android.media.recorder

import com.lkdont.android.media.MediaException

/**
 * 录制事件监听器
 *
 * @author lqd
 */
interface RecordEventListener {

    /*** 录制状态发生改变 */
    fun onStateChanged(recorder: Recorder, oldState: RecordState, newState: RecordState)

    /*** 发生错误 */
    fun onError(recorder: Recorder, e: MediaException)

}